MODULE = genericv4l.o

SRCS = bt829.c generic.c i2c.c mach64.c memory.c queue.c rage128.c board.c

OBJS = $(SRCS:.c=.o)

KDIR := /lib/modules/$(shell uname -r)/build

CFLAGS = -D__KERNEL__ -DKERNEL2_4 -I$(KDIR)/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include linux/modversions.h

all: $(MODULE)

$(MODULE): $(OBJS)
	$(LD) -r -o $@ $^
	sync

clean:
	rm -f $(MODULE) *.o *~
